<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
if(request.getAttribute("result")!=null){
	if(request.getAttribute("result").equals("ok")){
	%>
		<script>alert("提交成功");location='/ryddList.do?uid=${uid}'</script>
	<%
	}else{
	%>
		<script>alert("提交失败");</script>
	<%
	}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=" http://www.w3.org/1999/xhtml">
  <head>
    
    <title>人员资料</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link rel="stylesheet" type="text/css" href="css/style.css">
<script>
function SubmitForm(){

	return true;
}
</script>
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  </head>
  
  <script language="javascript" type="text/javascript" src="js/qy1.js"></script>
  <body >
  <%Dlyh dlyh = (Dlyh)request.getSession().getAttribute("dlyh"); 
  if((dlyh.getZd().getTypename().endsWith("乡")||dlyh.getZd().getTypename().equals("工业园区")||dlyh.getZd().getTypename().endsWith("镇")||dlyh.getZd().getTypename().endsWith("办")||dlyh.getZd().getTypename().endsWith("办事处")||dlyh.getZd().getTypename().endsWith("局")||dlyh.getZd().getTypename().endsWith("社")||dlyh.getZd().getTypename().endsWith("集团")||dlyh.getZd().getTypename().endsWith("院")||dlyh.getZd().getTypename().equals("民航"))){
   %>
  <input type="hidden" value="<%=request.getSession().getAttribute("shiqyid") %>" id="shiqyid" name="shiqyid" />
  <%}%>
  <input type="hidden" value="<%=dlyh.getZd().getParentid() %>" id="qyid" name="qyid" />
  <input type="hidden" value="<%=dlyh.getZd().getTypename() %>:<%=dlyh.getZd().getId() %>:<%=dlyh.getZd().getParentid() %>" id="dlyhzd" name="dlyhzd" />
  <input type="hidden" value="<%=request.getAttribute("shi") %>" id="shiid" name="shiid" />
  <input type="hidden" value="<%=request.getAttribute("xian") %>" id="xianid" name="xianid" />
  <input type="hidden" value="<%=request.getAttribute("xiang") %>" id="xiangid" name="xiangid" />
  <input type="hidden" value="<%=request.getAttribute("cun")%>" id="cunid" name="cunid" />
  <input type="hidden" value="<%=request.getAttribute("xianzhi") %>" id="xianzhi" name="xianzhi" />
  <input type="hidden" value="${rydd.zdByDqbmbh.typename}" id="zhi" name="zhi"/>
   <% if((dlyh.getZd().getTypename().endsWith("乡")||dlyh.getZd().getTypename().equals("工业园区")||dlyh.getZd().getTypename().endsWith("镇")||dlyh.getZd().getTypename().endsWith("办")||dlyh.getZd().getTypename().endsWith("办事处")||dlyh.getZd().getTypename().endsWith("局")||dlyh.getZd().getTypename().endsWith("社")||dlyh.getZd().getTypename().endsWith("集团")||dlyh.getZd().getTypename().endsWith("院")||dlyh.getZd().getTypename().equals("民航"))){
   %>
  <input type="hidden" value="<%=request.getSession().getAttribute("shiqyid") %>" id="shiqyid2" name="shiqyid2" />
  <%}%>
  <input type="hidden" value="<%=dlyh.getZd().getParentid() %>" id="qyid2" name="qyid2" />
  <input type="hidden" value="<%=dlyh.getZd().getTypename() %>:<%=dlyh.getZd().getId() %>:<%=dlyh.getZd().getParentid() %>" id="dlyhzd2" name="dlyhzd2" />
  <input type="hidden" value="<%=request.getAttribute("shi2") %>" id="shiid2" name="shiid2" />
  <input type="hidden" value="<%=request.getAttribute("xian2") %>" id="xianid2" name="xianid2" />
  <input type="hidden" value="<%=request.getAttribute("xiang2") %>" id="xiangid2" name="xiangid2" />
  <input type="hidden" value="<%=request.getAttribute("cun2")%>" id="cunid2" name="cunid2" />
  <input type="hidden" value="<%=request.getAttribute("xianzhi2") %>" id="xianzhi2" name="xianzhi2" />
  <input type="hidden" value="${rydd.zdByDhbmbh.typename}" id="zhi2" name="zhi2"/>
<div style="display: none;" id="PageHeader" class="PageHeader"></div>
<table class="TableTop" width="100%">
   <tbody><tr>
      <td class="left"></td>
      <td class="center subject">
         人员调动-${ryzl.xm}</td>
      <td class="right"></td>
   </tr>
</tbody></table>
<form action="ryddEdit.do" method="post" id="form1" name="form1" onSubmit="return SubmitForm();"  enctype="multipart/form-data">
<input id="id" name="id" value="${rydd.id}" type="hidden"/>
<input id="uid" name="uid" value="${ryzl.id}" type="hidden"/>
<table class="TableBlock no-top-border" width="100%" align="center">
    <tbody><tr>
      <td width="100" valign="bottom" nowrap="nowrap" class="TableData">调前部门：</td>
      <td valign="bottom" class="TableData">
      <!-- <input type="text" class="SmallInput" id="bm" value="${rydd.zdByDqbmbh.zdqc}" name="bm" onclick="openwindow(1)" readonly="readonly"></input>
          <a href="javascript:openwindow(1);">选择</a> -->
         <select disabled="disabled" id="sheng" name="sheng" >
           <option value="河北省">河北省</option>
        </select>省
        <select id="shi" name="shi" onchange="shichange(this.value)">
           <option>请选择市</option>
           <%List xianlist=(List) request.getSession().getAttribute("shilist"); 
            for(int i=0;i<xianlist.size();i++){%>
           <option value="<%=((Zd)xianlist.get(i)).getId() %>"><%=((Zd)xianlist.get(i)).getTypename() %></option>
           <%} %>
        </select>市
        <select id="xian" name="xian" onchange="xianchange(this.value)">
           <option>请选择县</option>
        </select>县
        <select id="xiang"  name="xiang" onchange="xiangchange(this.value)" >
         <option>请选择乡</option>
        </select>乡
        <select id="cun"  name="cun" >
        <option >请选择村</option>
        </select>村
        <input type="hidden" id ="bmbh" name="bmbh" value="${rydd.zdByDqbmbh.id }" />  
      </td>
      </tr>
    </tbody><tbody id="tr_webmail" style="display: none;">
   </tbody>
    <tbody>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">调前职位：</td>
        <td class="TableData"><select name="zdByDqzwbhString" id="zdByDqzwbhString">
          <c:forEach items="${zwList}" var="zw"> 
          <option value="${zw.id}" <c:if test="${rydd.zdByDqzwbh.id==zw.id}"> selected</c:if>>
            ${zw.typename}
            </option>
          </c:forEach>
        </select></td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">调后部门：</td>
        <td class="TableData">
         <select disabled="disabled" id="sheng2" name="sheng2" >
           <option value="河北省">河北省</option>
        </select>省
        <select id="shi2" name="shi2" onchange="shi2change(this.value)">
           <option>请选择市</option>
           <%List xianlist1=(List) request.getSession().getAttribute("shilist"); 
            for(int i=0;i<xianlist1.size();i++){%>
           <option value="<%=((Zd)xianlist1.get(i)).getId() %>"><%=((Zd)xianlist1.get(i)).getTypename() %></option>
           <%} %>
        </select>市
        <select id="xian2" name="xian2" onchange="xian2change(this.value)">
           <option>请选择县</option>
        </select>县
        <select id="xiang2"  name="xiang2" onchange="xiang2change(this.value)" >
         <option>请选择乡</option>
        </select>乡
        <select id="cun2"  name="cun2" >
        <option >请选择村</option>
        </select>村
        <!--   <input type="text" class="SmallInput" id="bm1" value="${rydd.zdByDhbmbh.zdqc}" name="bm1" onclick="openwindow(2)" readonly="readonly"></input>
          <a href="javascript:openwindow(2);">选择</a>-->
        <input type="hidden" id ="bmbh1" name="bmbh1" value="${rydd.zdByDqbmbh.id }" />
        </td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">调后职位：</td>
        <td class="TableData"><select name="zdByDhzwbhString" id="zdByDhzwbhString">
          <c:forEach items="${zwList}" var="zw"> 
          <option value="${zw.id}" <c:if test="${rydd.zdByDhzwbh.id==zw.id}"> selected</c:if>>
          ${zw.typename}
            </option>
          </c:forEach>
        </select></td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">调动日期：</td>
        <td class="TableData"><input name="ddrqString" type="text" class="SmallInput" id="ddrqString"  onKeyPress="if(event.keyCode==13) return false;" value="${rydd.ddrqString}" maxlength="100" onFocus="WdatePicker()"></td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">调动原因：</td>
        <td class="TableData"><input name="ddyy" type="text" class="SmallInput" id="ddyy"  onKeyPress="if(event.keyCode==13) return false;" value="${rydd.ddyy}" maxlength="100"></td>
      </tr>
      <tr>
        <td class="TableData" valign="top" nowrap="nowrap">备注：</td>
        <td class="TableData"><input name="bz" type="text" class="SmallInput" id="bz"  onKeyPress="if(event.keyCode==13) return false;" value="${rydd.bz}" maxlength="100"></td>
      </tr>
    <tr class="TableControl" align="center">
      <td colspan="2" nowrap="nowrap">
        
        <input id="btn_submit" value="提交" class="BigButtonB"  type="submit" />&nbsp;&nbsp; <input id="btn_submit" value="返回" class="BigButtonB"  type="button" onClick="history.back();"></td>
    </tr>
  </tbody></table>
</form>
  <script type="text/javascript">
  function openwindow(str)
{
  window.open("doTree.jsp?sid="+str+"&pd=","部门","height=380,width=260,top=230,left=250,scrollbars=yes"); 
   //showModalDialog("doTree.jsp","部门","height=380,width=260,top=230,left=250,scrollbars=yes");
}
</script>
 <script type="text/javascript">
  loaddw();selectedaddr();
  loaddw2();selectedaddr2();
  </script>
  </body>
</html>
